﻿namespace HutongGames.PlayMaker
{
    using System;
    using UnityEngine;

    [Serializable]
    public class FsmInt : NamedVariable
    {
        [SerializeField]
        private int value;

        public FsmInt()
        {
        }

        public FsmInt(FsmInt source) : base(source)
        {
            this.value = source.value;
        }

        public FsmInt(string name) : base(name)
        {
        }

        public static implicit operator FsmInt(int value)
        {
            FsmInt num2 = new FsmInt(string.Empty);
            num2.value = value;
            return num2;
        }

        public override string ToString()
        {
            return this.value.ToString();
        }

        public int Value
        {
            get
            {
                return this.value;
            }
            set
            {
                this.value = value;
            }
        }
    }
}

